package com.bng8.superstar_cms.domain.dto;

import com.bng8.superstar_cms.util.InsertValidationGroup;
import com.bng8.superstar_cms.util.UpdateValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * ClassName: SupMissionDTO
 * Package: com.bng8.superstar_cms.domain.dto
 * Date: 2023/8/17 13:24
 * Author: 安知（13921877634）
 */
@Data
public class SupMissionDTO implements Serializable {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 7320974494915582476L;

    private String id;

    /**
     * 用户名
     */
    @NotBlank(message = "挑战者不能为空！", groups = {InsertValidationGroup.class, UpdateValidationGroup.class})
    private String userName;

    /**
     * 挑战者
     */
    @NotBlank(message = "挑战者不能为空！", groups = {UpdateValidationGroup.class})
    private String challenger;

    /**
     * 任务名
     */
    @NotBlank(message = "任务名不能为空！", groups = {InsertValidationGroup.class})
    private String missionName;

    /**
     * 目标数
     */
    private Integer missionNum;

    /**
     * 完成数
     */
    private Integer quantity;

    /**
     * 奖品
     */
    private String prize;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;
}
